using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutContactUBusiness
	{
		#region code CMS
        public static List<OutContactUs> GetOutContactUList()
        {
		    var result = FreshCmsDataAccessProvider.OutContactUs.GetOutContactUList();
		    return result;
        }

		public static List<OutContactUs> GetOutContactUListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.OutContactUs.GetOutContactUListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static OutContactUs GetOutContactUById(int contactId)
        {
		    var result = FreshCmsDataAccessProvider.OutContactUs.GetOutContactUById(contactId);
            return result;
        }

        public static int InsertOutContactU(OutContactUs OutContactU)
        {
            var result = FreshCmsDataAccessProvider.OutContactUs.InsertOutContactU(OutContactU);
            return result;
        }

        public static int UpdateOutContactU(OutContactUs OutContactU)
        {
            var result = FreshCmsDataAccessProvider.OutContactUs.UpdateOutContactU(OutContactU);
            return result;
        }

        public static int DeleteOutContactU(int contactId)
        {
            var result = FreshCmsDataAccessProvider.OutContactUs.DeleteOutContactU(contactId);
            return result;
        }
		#endregion
	}
}